



def demo1():
    return int(input('输入一个数字'))

def demo2():
    num = demo1()
    print(f'demo2拿到整数{num}')
    return num

try:
    demo2()
except Exception as e:
    print(e)